# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>

pkgname=xlhtml
pkgver=0.5.1
pkgrel=0
pkgdesc="An Excel spreadsheet (.xls) and PowerPoint (.ppt) to HTML converter"
# loongarch64: to unblock testing/ for this arch, fetch fails with HTTP 401
arch="all !loongarch64"
url="https://chicago.sourceforge.net/xlhtml/"
license='GPL-2.0-or-later '
source="https://bitbucket.org/jsuto/piler/downloads/xlhtml-$pkgver-sj-mod.tar.gz"
options="!check" # no test suite
subpackages="$pkgname-doc"

builddir="$srcdir/$pkgname-$pkgver-sj-mod"

prepare() {
	default_prepare
	update_config_sub
	update_config_guess
}

build() {
	./configure.real --prefix=/usr --mandir="$pkgdir/usr/share/man"
	make
}

package() {
	make prefix="$pkgdir/usr" install
}

sha512sums="
1efb387e218a3d7fd3935a65398fba64561b45b1b7916ba1bf4e13edf5155748e811e4e0c35a6d3d83b30f4585a66186fae25199cdaf0c369d085f31ec52fe9d  xlhtml-0.5.1-sj-mod.tar.gz
"
